cmake_minimum_required(VERSION 3.5)

project(qt_study LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 根据实际情况设置，或者在cmake参数中配置 cmake -DCMAKE_PREFIX_PATH="D:/Qt/Qt5.9.9/5.9.9/mingw53_32"
#set(CMAKE_PREFIX_PATH "D:/Qt/Qt5.9.9/5.9.9/mingw53_32")

add_subdirectory(dm01_HelloWorld)
add_subdirectory(dm02_QPushButton)
add_subdirectory(dm03_SignalAndSlot)
add_subdirectory(dm04_SignalAndSlot2)
add_subdirectory(dm05_SignalAndSlot3)
add_subdirectory(dm06_QMainWindow)
add_subdirectory(dm07_Source)
add_subdirectory(dm08_QDialog)
add_subdirectory(dm09_QDialog2)
add_subdirectory(dm10_Layout)
add_subdirectory(dm11_Control)
add_subdirectory(dm12_Control2)
add_subdirectory(dm13_SmallWidget)
add_subdirectory(dm14_QEvent)
add_subdirectory(dm15_QTimerEvent)
add_subdirectory(dm16_QEvent2)
add_subdirectory(dm17_QPainter)
add_subdirectory(dm18_QPainter2)
add_subdirectory(dm19_QPaintDevice)
add_subdirectory(dm20_QFile)
add_subdirectory(dm21_QFileInfo)
add_subdirectory(case01_md5Sum)
add_subdirectory(case02_CoinFlip)
